﻿namespace NExt.form
{
    public class NumberField : NumberField<NumberFieldEvents>
    {
    }

    public abstract class NumberField<TEvents>: TextField<TEvents>
        where TEvents : NumberFieldEvents, new()
    {
        public bool? allowDecimals { get; set; }
        public bool? allowNegative { get; set; }
        public string baseChars { get; set; }
        public int? decimalPrecision { get; set; }
        public string decimalSeparator { get; set; }
        public string maxText { get; set; }
        public int? maxValue { get; set; }
        public string minText { get; set; }
        public int? minValue { get; set; }
        public string nanText { get; set; }
    }

    public class NumberFieldEvents: TextFieldEvents
    {
    }
}
